package org.bao.netcrawler.net;

import org.bao.netcrawler.utils.Configurer;

public class BrowserWithProxy extends Browser{
	public String getContent(String urlPath){
		Configurer config = Configurer.getInstance();
		
		return this.getContent(config.getBrowserProxyHost(), config.getBrowserProxyPort(), urlPath);
	}
	
	public String getContent(String host, String port, String urlPath){
		System.setProperty("proxyHost", host);
		System.setProperty("proxyPort", port);
		
		return super.getContent(urlPath);
	}
}
